package com.aaa.mrcai.mapper;

import com.aaa.mrcai.pojo.entity.Area;
import com.aaa.mrcai.pojo.entity.Market;
import com.aaa.mrcai.pojo.entity.State;
import com.aaa.mrcai.pojo.vo.MarketVO;
import com.aaa.mrcai.query.MarketQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:Li-Yan-Chun
 * @Date:2021/12/3 21:20
 */
public interface MarketMapper {
    List<Market> queryMarket(MarketQuery query);
    Long queryMarketTotalCount(MarketQuery query);
    List<Market> getMarket();
    List<Area> getArea();
    List<State> getState();
    Long isMarketExist(@Param("mname") String mname, @Param("aid") Integer aid);
    int addMarket(MarketVO marketVO);
    MarketVO getOneMarket(int id);
    Long isMarketIdExist(MarketVO marketVO);
    int updateMarket(MarketVO marketVO);
}
